<template>
    <div>
        <h1>Home组件内容</h1>
        <div>
            <!--replacec参数会顶替掉栈顶的路径  -->

            <router-link replace active-class="active" to="/home/news"> News </router-link>
            <router-link replace active-class="active" to="/home/message"> Message </router-link>

        </div>
        <keep-alive include='xingwen'>
            <router-view></router-view>
        </keep-alive>

    </div>
</template>

<script>
export default {

}
</script>

<style lang="less" scoped>
.active {
    color: blue;
}
</style>